package draw.dao.mapper;

import draw.common.pojo.EncryptPNumber;
import draw.dao.dataObject.UserDO;
import draw.server.dto.UserDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    List<UserDto> selectByIds(List<Long> userIds);

    int register(UserDO userDo);

    UserDO getUserByUsername(String userName);

    UserDO getUserByUsernameAndPassword(String userName, String password);

    UserDO getUserByPhoneNumber(EncryptPNumber phoneNumber);

    UserDO getUserByEmail(String email);

    List<UserDO> getAllUsers();

    UserDO getUserByEmailAndPassword(String userName, String password);
}
